﻿//01.Write an if statement that examines two integer variables
//and exchanges their values if the first one is greater than the second one.

using System;

namespace ExchangeValues
{
    class ExchangeValues
    {
        static void Main()
        {
            Console.Write("Please enter the first number: ");
            int a = int.Parse(Console.ReadLine());
            Console.Write("Please enter the second number: ");
            int b = int.Parse(Console.ReadLine());

            if (a > b)
            {
                int c = a;
                a = b;
                b = c;
            }
            Console.WriteLine("a = {0}\nb = {1}", a, b);
        }
    }
}
